package com.goldsign.pay.web.portal.configuration;

import javax.servlet.http.HttpServlet;

import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet;


@Configuration
public class PortalConfiguration {
//	@Bean
////	@Scope("prototype")
//	public Feign.Builder feignBuilder() {
//	    return Feign.builder();
//	}
	
//	@Bean
//	public SampleFacadeHystrix fallback(){
//	    return new SampleFacadeHystrix();
//	}
	
/*	@Bean
	public SampleFacade.Hystrix fallback(){
	    return new SampleFacade.Hystrix();
	}*/
	
	
	
	/*@Bean
	public ServletRegistrationBean getHystrixServlet(){
		HystrixMetricsStreamServlet servlet = new HystrixMetricsStreamServlet();
		ServletRegistrationBean registration = new ServletRegistrationBean(servlet);
		registration.addUrlMappings("hystrix.stream");
//		bean.setName("HystrixMetricsStreamServlet");
//		bean.setLoadOnStartup(2);
	    return registration;
	}*/
}
